<?php
/* @var $this SelisteController */
/* @var $model Seliste */
$cs = Yii::app()->getClientScript();
$cs->registerScript('mail', "
		$('#mail_toolbar .btn').tooltip();
",CClientScript::POS_READY );
?>
<div class="container">
	<div class="row">
		<div class="col-lg-12">	
			<div class="page-header">
				<h1>Détails du message
					<div class="btn-group" id="mail_toolbar">
					<?php 
					echo CHtml::link("<span class=\"fa fa-times\"></span>",array('seliste/delmail', 'id'=>$model->id),array('confirm' => 'Etes-vous sûr(e) de vouloir supprimer ce message ?','class'=>"btn btn-sm btn-danger","data-toggle"=>"tooltip","data-placement"=>"top","title"=>"Supprimer le message","data-container"=>"body"));
					echo CHtml::link("<span class=\"fa fa-arrow-left\"></span>",array('seliste/mailbox'),array('class'=>"btn btn-sm btn-primary","data-toggle"=>"tooltip","data-placement"=>"top","title"=>"Retour à la boite de réception","data-container"=>"body"));
					?>
					</div>
				</h1>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12">	
			<?php $this->renderPartial('_mail',array(
						'model'=>$model,
			)); ?>
		</div>
	</div>
</div>